# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class LoginInfo(object):

    def __init__(self, loginType=None, pin=None, adminPin=None, credentialInfo=None, loginUrl=None, loginName=None):
        """
        :param loginType: (Optional) 身份类型： 1-主账号；2-子账号；3-角色；0-无(用户未登陆)
        :param pin: (Optional) 当前登录用户（type=1 或2时，此字段生效）
        :param adminPin: (Optional) 当前登录用户的主账号（type=2时，此字段生效）
        :param credentialInfo: (Optional) 角色身份信息(type=3时，此字段生效)
        :param loginUrl: (Optional) 产品线跳转的url（type=0时，此字段生效）
        :param loginName: (Optional) 主账号登录名（type=1，此字段不为空）
        """

        self.loginType = loginType
        self.pin = pin
        self.adminPin = adminPin
        self.credentialInfo = credentialInfo
        self.loginUrl = loginUrl
        self.loginName = loginName
